<?php

function mapTagCountToClass($count)
{
	if($count < 3) return 'tag1';
	elseif($count < 6) return 'tag2';
	elseif($count < 10) return 'tag3';
	elseif($count < 14) return 'tag4';
	elseif($count < 20) return 'tag5';
	elseif($count < 25) return 'tag6';
	elseif($count < 30) return 'tag7';
	else return 'tag8';
}


function getPiorityCSS_class($priority)
{
	switch((int)$priority)
	{
		case 2: return 'taskpriority_2';
		case 3: return 'taskpriority_3';
		default: return 'taskpriority_1';
	}
}